package cn.coisini.model.common.constants;

/**
 * @author xiangshaw
 * Description: 定义常量
 * final 修饰类，表示该类不能被继承,仅用作常量或工具类，不应有子类。
 */
public final class AdminConstants {

    // 私有构造函数，防止实例化（防止通过反射等方式创建类的实例，该类仅用于静态访问）
    private AdminConstants() {
        throw new UnsupportedOperationException("This is a utility class and cannot be instantiated");
    }

    // 状态正常
    public static final int ACCOUNT_NORMAL = 0;
    // 状态锁定
    public static final int ACCOUNT_LOCK = 1;
    // 状态封禁
    public static final int ACCOUNT_SUSPENDED = 2;

    public static final String UNKNOWN = "未知";
    // 状态
    public static final String STATUS = "status";
    // 状态0
    public static final short FALSE = 0;
    // 状态1
    public static final short TRUE = 1;

    // 用户名
    public static final String USERNAME = "username";
    // 未知用户
    public static final String UNKNOWN_USER = "未知用户";

    // 未知分类
    public static final String UNKNOWN_CATEGORY = "未知分类";
    // 分类名称
    public static final String CATEGORY_NAME = "category_name";

    // 声明
    public static final String CLAIMS = "claims";

    // 分类ID
    public static final String CATEGORY_ID = "category_id";
    // 创建者ID
    public static final String CREATE_USER = "create_user";
    // 创建时间
    public static final String CREATE_TIME = "create_time";

    // 缓存的联想词key
    public static final String ASSOCIATE_LIST = "associate_list_";
}
